package com.cvte.vdtlibrary.bluetooth;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wuguitong on 2018/11/20.
 */
public enum EnumBTSendModeStatus implements Parcelable {
    STATUS_UNINIT,
    STATUS_POWEROFF,
    STATUS_POWERON,
    STATUS_PAIR_SUC,
    STATUS_PAIR_FAIL,
    STATUS_SEARCH_START,
    STATUS_SEARCH_FIND,
    STATUS_SEARCH_END,
    STATUS_GET_NAME,
    STATUS_A2DP_CON_SUC,
    STATUS_A2DP_CON_FAIL,
    STATUS_A2DP_DISCON,
    STATUS_A2DP_DISCONNECTING,
    STATUS_A2DP_READY,
    STATUS_A2DP_CONNECTING,
    STATUS_A2DP_CONNECTED,
    STATUS_A2DP_STREAMING,
    STATUS_A2DP_PAUSED,
    STATUS_INITED;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ordinal());
    }
    public static final Creator<EnumBTSendModeStatus> CREATOR = new Creator<EnumBTSendModeStatus>() {
        @Override
        public EnumBTSendModeStatus createFromParcel(Parcel source) {
            return EnumBTSendModeStatus.values()[source.readInt()];
        }

        @Override
        public EnumBTSendModeStatus[] newArray(int size) {
            return new EnumBTSendModeStatus[size];
        }
    };
}
